<layout name="layout" />
<link rel="stylesheet" href="/Css/algorithm.css" type="text/css">
<div class="pageheader notab">
    <h1 class="pagetitle">
        <a href="/" class="linkWay">首页/思路优化</a>
        &nbsp;<span class="divider">»</span>&nbsp;
        <a class="currentWay">新增思路</a>
    </h1>
</div>
<div id="contentwrapper" class="contentwrapper">
</div>

<include file="{APP_PATH}Template/Algorithm/editor.html" />

<script type="text/javascript">
    var user_id = {$me['user_id']};
    var semiauto_id = {$semiauto_id};
    $(document).ready(function(){
        editor = algorithm.editor($('.contentwrapper'), {user_id: user_id});
        editor.on('saved', function(semiatuo){
           location.href = '/algorithm/semiauto_list';
        });
        editor.init();
        editor.edit({semiauto_id: semiauto_id});
    });
</script>